import request from "../request.js";
import data1 from '@/assets/mock/answers.json'
import data2 from '@/assets/mock/invite.json'
import data3 from '@/assets/mock/popular.json'
import data4 from '@/assets/mock/question.json'

// 获取为你推荐
// export const RECOMMEND = (offset) => request('GET', `/api/answers/recommend?offset=${offset}`)

// 获取人气问题
// export const POPULAR = (offset) => request('GET', `/api/answers/popular?offset=${offset}`)

// 获取最新问题
// export const QUESTION = (offset) => request('GET', `/api/answers/question?offset=${offset}`)

// 获取邀请回答
// export const INVITE = (offset) => request('GET', `/api/answers/invite?offset=${offset}`)

export function ANSWER_RECOMMEND(limit) {
    return Promise.resolve(data1);
}

export function INVITE(limit) {
    return Promise.resolve(data2);
}

export function QUESTION(limit) {
    return Promise.resolve(data4);
}

export function POPULAR(limit) {
    return Promise.resolve(data3);
}
